import Login from './views/Login.vue'
import NotFound from './views/404.vue'
import Home from './views/Home.vue'
import Page6 from './views/nav3/Page6.vue'
import echarts from './views/charts/echarts.vue'
import Department from "./views/org/Department";
import Employee from "./views/org/Employee";
import Shop from "./views/org/Shop";
import SystemDictionaryType from "./views/system/SystemDictionaryType";
import SystemDictionaryDetail from "./views/system/SystemDictionaryDetail";
import SystemDictionary from "./views/system/SystemDictionary";
import ShopRegister from "./views/ShopRegister";

import Menu1 from "./views/system/Menu1";
import Role from "./views/system/Role";
import Permission from "./views/system/Permission";
import SearchMasterMsgToAudit from "./views/searchMsg/SearchMasterMsgToAudit";
import SearchMasterMsgTohandle from "./views/searchMsg/SearchMasterMsgTohandle";

let routes = [
  {
    path: '/login',
    component: Login,
    name: '',
    hidden: true
  },
  {
    path: '/register',
    component: ShopRegister,
    name: '',
    hidden: true   // 隐藏
  },
  {
    path: '/404',
    component: NotFound,
    name: '',
    hidden: true
  },
  //{ path: '/main', component: Main },

  {
    path: '/',
    component: Home,
    name: 'Charts',
    leaf: true,//只有一个节点
    iconCls: 'fa fa-bar-chart',
    children: [
      { path: '/echarts', component: echarts, name: 'echarts' }
    ]
  }
];

export default routes;
